import React from 'react'
import Stu from './stu'
import Teacher from './teacher'
export default class Index extends React.Component {

    constructor(props){
        super(props);
        this.state={
            msg:'最外层'
        }
    }
    render() {
       return  <div>
           {this.state.msg}
         <input type="text" value={this.state.msg} onChange={(e)=>{this.setState({msg:e.target.value})}}/>
       <Stu/>
       <Teacher {...this.state}/>
   </div>
    }
}